/*进行全局配置或引入其他框架*/
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

/*引入element-plus组件库*/
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'


/*引入element-plus图标库*/
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
/*遍历ElementPlusIconVue图标库中所有的图标组件，并依次注册到vue实例app中*/
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

//5.1修改elementPlus默认中文
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

/*给当前vue实例应用element-plus组件库*/
app.use(ElementPlus,{locale:zhCn}).use(store).use(router).mount('#app')
